<?php
include APPPATH."views/frontend/inc/01_meta.php";
include APPPATH."views/frontend/inc/02_head.php";
include APPPATH."views/frontend/inc/04_slider.php";
?>

<div class="navi">
	<a href="/home">Trang chủ</a>
	<span>/</span>
	<span class="active">Khóa học</span>
	<div class="clear"></div>
	<?php include APPPATH."views/frontend/inc/05_social.php"; ?>
</div>
<div class="container">
	<div class="col-xs-12 page-title">KHÓA HỌC CHUYÊN NGHIỆP</div>
	<div class="clear"></div>
	<div>
		<?php
			foreach($service_advance as $s){
				$thumb = $s->service_thumb;
				$thumb = preg_replace('/\/data/','',$thumb,1);
				if(file_exists(APPPATH. "../data/thumbs/$thumb") && is_file(APPPATH. "../data/thumbs/$thumb")){
					$s->small_thumb = "/data/thumbs$thumb";
				}else{
					$s->small_thumb = $s->service_thumb;
				}
		?>
		<div class="col-sm-4 col-sxs-6 col-xs-12">
			<div class="">
				<a href="tel:0982636618" title="Bánh sinh nhật, học làm bánh, <?php echo $s->service_title?>">
					<div class="nailthumb" data-rel="imageGallery">
						<div class="nailthumb-figure" data-title="<?php echo $s->service_title?>" 
						data-src="<?php echo $s->service_thumb?>">
							
							<div class="nailthumb-container">
								<img class="flu lazy" data-original="<?php echo $s->small_thumb?>" 
									alt="<?php echo $s->service_title?>"
									title="Bánh sinh nhật, học làm bánh, <?php echo $s->service_title?>"
									>
								
							</div>
							<div class="nailthumb-mark">
								<div class="cake-price" style="color:#fff">0982 636 618</div>
							</div>
						</div>
					</div>
				</a>
				<div>
					<div class="cake-title" style="color:#BD7F1C;text-align:center"><?php echo $s->service_title?></div>
					<div class="cake-desc" style="color:#816943;height:60px;text-align:center"><?php echo $s->service_desc?></div>
				</div>
				
			</div>
		</div>
		<?php
			}
		?>
		<div class="clear"></div>
	</div>
	<div class="col-xs-12 page-title">KHÓA HỌC</div>
	<div class="clear"></div>
	<div>
		<?php
			foreach($service_basic as $s){
				$thumb = $s->service_thumb;
				$thumb = preg_replace('/\/data/','',$thumb,1);
				if(file_exists(APPPATH. "../data/thumbs/$thumb") && is_file(APPPATH. "../data/thumbs/$thumb")){
					$s->small_thumb = "/data/thumbs$thumb";
				}else{
					$s->small_thumb = $s->service_thumb;
				}
		?>
		<div class="col-md-3 col-sm-4 col-sxs-6 col-xs-12">
			<a href="tel:0982636618" title="Bánh sinh nhật, học làm bánh, <?php echo $s->service_title?>">
				<div class="nailthumb" data-rel="imageGallery">
					<div class="nailthumb-figure" data-title="<?php echo $s->service_title?>" 
					data-src="<?php echo $s->service_thumb?>">
						<div class="nailthumb-container">
							<img class="flu lazy" data-original="<?php echo $s->small_thumb?>" 
								alt="<?php echo $s->service_title?>"
								title="<?php echo $s->service_title?>"
								>
						</div>
						<div class="nailthumb-mark">
							<div class="cake-price" style="color:#fff">0982 636 618</div>
						</div>
					</div>
				</div>
			</a>
			<div>
				<h1 class="cake-title" style="color:#BD7F1C"><?php echo $s->service_title?></h1>
				<div class="cake-desc" style="height:60px"><?php echo $s->service_desc?></div>
			</div>
		</div>
			
		<?php
			}
		?>
		<div class="clear"></div>
	</div>
	
</div>
<?php
include APPPATH."views/frontend/inc/03_foot.php";
?>